package io.renren.modules.app.service;

import com.baomidou.mybatisplus.service.IService;
import io.renren.modules.app.dao.AlipayNotifyDao;
import io.renren.modules.app.entity.AlipayNotifyEntity;
import org.springframework.beans.factory.annotation.Autowired;

public interface AlipayNotifyService extends IService<AlipayNotifyEntity> {



    boolean insertOne(AlipayNotifyEntity alipayNotifyEntity);

    /**
     * 支付成功返回
     * @param alipayNotifyEntity
     * @return
     */
    boolean alipayReturn(AlipayNotifyEntity alipayNotifyEntity);

    /**
     * 支付宝异步通知
     * @param alipayNotifyEntity
     * @return
     */
    boolean alipayNotify(AlipayNotifyEntity alipayNotifyEntity);

    AlipayNotifyEntity getOne(String orderId);

    /**
     * 更新
     * @param alipayNotifyEntity
     * @return
     */
    boolean update(AlipayNotifyEntity alipayNotifyEntity);

}
